<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
      var car = prompt('请输入车辆的名字');
        switch (car) {
            case 'AE86':
                console.log('急弯加速行驶');
                break;
            case '五菱宏光':
                console.log('任何道路通行');
                break;
            default:
                console.log('没有查询到这个车辆');
        }
</script>
</body>
</html>